﻿/* 2. Write a program that reads the radius r of a circle and prints its perimeter and area. */

using System;

public class CirclePerimeterAndArea
{
    public static void Main()
    {
        decimal r;

        Console.Write("Circle with radius r = ");
        r = decimal.Parse(Console.ReadLine());
        Console.WriteLine("has a perimeter = {0}\nand area = {1}",
                                2 * (decimal)Math.PI * r, (decimal)Math.PI * r * r);
    }
}